<?php
/**
 * Created by PhpStorm.
 * User: sky
 * Date: 2015/8/27
 * Time: 18:29
 */

namespace ulue\core\db\base;


interface InterfaceTable extends InterfaceCommand
{
    public function create($ifNotExists = false, array $options = []);

    public function drop($ifNotExists = true, $option = '');

    public function update();

    public function reset();

    public function rename($newName, $returnNew = true);

    public function lock();

    public function unlock();

    public function truncate();
    
//////////////////////////////////////////////// column info ////////////////////////////////////////////

    public function existsColumn($name);

    public function getColumnNames($toString=false);

    public function getColumnDetails($full = true);

    public function getColumnDetail($column, $full = true);

}